<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			//-------------------字面量-------------------------------------------
			// var name =  "张";
			/*
			  {
				 属性名:属性值,
				 ...
			  }	
			*/

			var p1 = {
				name: "张三",
				age: 20,
				study: function() {
					console.log("学习");
				}
			}
			console.log(p1.name);
			p1.study();

			var p2 = {
				name: "李四",
				age: 30,
				work: function() {
					console.log("工作");
				}
			}
			console.log(p2.name);
			p2.work();
		</script>
	</head>
	<body>
	</body>
</html>
